home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / ev_201.zip / TIMEFCTS.H < prev    next >
C/C++ Source or Header  |  1993-07-03  |  2KB  |  55 lines

  1. #if !defined (TIMEFCTS)           /* Prevents multiple declarations errors */
  2. #define TIMEFCTS
  3.  
  4. /*
  5.    Module        : TIMEFCTS.H
  6.    Version       : 2.0
  7.    Revision date : July 3rd, 1993
  8.    Author(s)     : Rémy Gendron
  9.  
  10.    Description   : Time related functions.
  11. */
  12.  
  13.  
  14. /* Macros ---------------------------------------------------------------- */
  15.  
  16. #include "stdmacro.h"
  17.  
  18.  
  19. /* Typedefs -------------------------------------------------------------- */
  20.  
  21. #include "stdtype.h"
  22.  
  23.  
  24. /* Prototypes ------------------------------------------------------------ */
  25.  
  26. #ifdef __cplusplus                     /* Enables linking with C++ modules */
  27. extern "C" {
  28. #endif
  29.  
  30. void far ticktimer_install (void) ;          /* Installs/De-installs timer */
  31.  
  32. void far ticktimer_reset (void) ;                   /* Resets tick counter */
  33.  
  34. dword far ticktimer_read (void) ;            /* Returns current tick count */
  35.  
  36. dword far diffdate            /* Computes number of days between two dates */
  37. (
  38.    int day1,                                      /* 1st date: day  (1-31) */
  39.    int month1,                                   /* 1st date: month (1-12) */
  40.    int year1,                                     /* 1st date: year (xxxx) */
  41.    int day2,                                      /* 2nd date: day  (1-31) */
  42.    int month2,                                   /* 2nd date: month (1-12) */
  43.    int year2                                      /* 2nd date: year (xxxx) */
  44. ) ;
  45.  
  46.  
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50.  
  51.  
  52. /* End Source File ------------------------------------------------------- */
  53.  
  54. #endif
  55.